/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.core.batch.service.BatchJobService
   Module Description   :

   Date Created      : 2009/12/3
   Original Author   : andy.chuang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.core.batch.service;

import java.util.Date;

import com.yaodian100.core.batch.entity.BatchJob;
import com.yaodian100.core.common.exception.CoreException;
import com.yaodian100.core.common.service.DomainService;

/**
 * @author andy.chuang
 * 
 */
public interface BatchJobService extends DomainService<BatchJob> {
	/**
	 * beanId: 判别batch job的类型 parameters: 要交换的资 料 startDate: 此job应开始执行 的时间，可为空
	 */
	@Deprecated
	public void save(String beanId, String parameters, Date startDate) throws CoreException;

	/**
	 * @param beanId
	 * @param parameters
	 * @param startDate 立即執行請傳null即可
	 * @param jobKey
	 * @throws CoreException
	 */
	public void save(String beanId, String parameters, Date startDate, String jobKey) throws CoreException;

	/**
	 * 請使用四個參數的method
	 * 
	 * @param beanId
	 * @param parameters
	 * @throws CoreException
	 */
	@Deprecated
	public void save(String beanId, String parameters) throws CoreException;
}
